package com.wen.system.shiro.realm.test;

import org.apache.shiro.authc.AuthenticationInfo;
import org.apache.shiro.authc.AuthenticationToken;
import org.apache.shiro.authc.credential.SimpleCredentialsMatcher;

/**
 * @author Devin QQ:1441289544
 * @description
 * @create 2022-02-10 10:22:09
 */
public abstract class AllowPassword extends SimpleCredentialsMatcher {

    public My my = new My();


    @Override
    public boolean doCredentialsMatch(AuthenticationToken token, AuthenticationInfo info) {
        System.out.println("进入了自己的比对密码方法，总是返回true");
        return true;
    }


    public void myFun() {
        // 实现接口的方法
        doxxx();
        System.out.println("通过父类的调用");
    }

    public abstract void doxxx();


    public static void main(String[] args) {
        doxxxRealm doxxxRealm = new doxxxRealm();

        doxxxRealm.myFun();
//        doxxxRealm.doxxx();
    }

    static class My {

    }

}

